package model

type User struct {
	UserId			uint    		`gorm:"primary_key" json:"user_id"`
	UserCode		string  		`gorm:"size:20;unique_index" json:"user_code"`
	Username		string  		`gorm:"size:40;unique_index" json:"username"`
	Contact			string			`gorm:"size:40" json:"contact"`
	Phone			string			`gorm:"size:20" json:"phone"`
	Remark     		string			`gorm:"type:varchar(100)" json:"remark"`
	BaseDate
}

func (User) TableName() string {
	return "tbl_user"
}
